package com.financing.wap.vo;

import java.io.Serializable;
import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class BaseVO implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4944536696164113911L;
	/**
	 * 最大分页数量
	 */
	public static final int MAX_PAGE_SIZE = 100;
	
	/**
	 * ID
	 */
	private Integer id;

	/**
	 * 当前页
	 */
	private int currentPage=0;
	
	/**
	 * 起始条数
	 */
	private int start=0;
	/**
	 * 分页数
	 */
	private int pageSize=10;
	

	  
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getPageSize() {
		if(pageSize > MAX_PAGE_SIZE){
			pageSize = MAX_PAGE_SIZE;
		}
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	
	
}
